package controllers;

import play.*;
import play.mvc.*;

import java.util.*;

import models.*;

public class Application extends Controller {

    public static void index() {
    	System.out.println("amit was here");
        render();
    }
    
    public static void guessing_game() {
    	render();
    }
    
    public static void letters_game() {
    	render();
    }
    
    public static void amit() {
    	System.out.println(params.get("my_name"));
    	Profile profile = new Profile();
    	profile.name = params.get("my_name");
    	profile.vehicle = params.get("vehicle");
    	profile.sex = params.get("sex");
    	profile.age = params.get("age");
    	
    	

    	profile.save();
    	
    	
    	
    	
    	
    	renderArgs.put("profiles", Profile.all().fetch());
    	
    	
        render();
    }

}